<template>
	<view class="confirmInfo">
		<view class="iconfont icon-wancheng"></view>
		<view class="info">
			<view>预约成功</view>
			<text>您已预约成功，请您持本人身份证按时就诊</text>
		</view>
	</view>
	<view class="btn">
		<view class="detail" @click="goReserveRegDetail">查看预约详情</view>
		<view class="confirm" @click="goIndex">返回首页</view>
	</view>
</template>

<script setup>
let goReserveRegDetail = () => {
	uni.navigateTo({
		url: '/pages/allRecord/reserveRegDetail/reserveRegDetail'
	})
}
let goIndex = () => {
	uni.switchTab({
		url: '/pages/index/index'
	})
}
</script>

<style lang="less" scoped="">
.confirmInfo {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 340rpx;
	.icon-wancheng {
		font-size: 98rpx;
		margin: 24rpx 0;
		color: #006eff;
		margin: 88rpx 0 50rpx 0;
	}
	.info {
		height: 120rpx;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		view {
			font-size: 40rpx;
			color: #202020;
		}
		text {
			font-size: 32rpx;
			color: #b1b1b0;
			margin-top: 30rpx;
		}
	}
}
.btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	view {
		width: 684rpx;
		height: 94rpx;
		line-height: 94rpx;
		text-align: center;
		font-size: 38rpx;
		border-radius: 6rpx;
	}
	.detail {
		margin-top: 240rpx;
		background-color: #3478f7;
		margin-bottom: 44rpx;
		color: #fff;
	}
	.confirm {
		background-color: #e4f0ff;
		color: #3478f7;
	}
}
</style>
